package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;

import java.util.List;

public interface PermissionService {
    PageResult findPage(QueryPageBean queryPageBean);

    List all();

    int add(Permission permission, Integer[] roles);

    List findByPermissionRoleId(Integer id);

    Permission findById(Integer id);

    int edit(Permission permission, Integer[] roles);

    int deleteById(Integer id);
}
